Skip to content

Conversation

@rmbh-odoo
Copy link
Contributor

@rmbh-odoo rmbh-odoo commented Nov 4, 2025

Description:

Current behavior before PR:

  • When typing =sum( and pressing the Home key, selecting a range caused weird
    behavior in the composer.
  • The same issue occurred when using Ctrl+A to select the entire text.

Desired behavior after PR is merged:

  • Changing the cursor selection now correctly switches the mode to 'editing'.

Task: 5226615

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Nov 4, 2025

Pull request status dashboard

… changes

Before this commit:
- When typing '=sum(' and pressing the Home key, selecting a range caused weird
  behavior in the composer.
- The same issue occurred when using Ctrl+A to select the entire text.

After this commit:
- Changing the cursor selection now correctly switches the mode to 'editing'.

Task: 5226615
@rmbh-odoo rmbh-odoo force-pushed the 17.0-fix-composer-range-selection-rmbh branch from 6971b3b to 2c38d58 Compare November 8, 2025 05:34
@rmbh-odoo rmbh-odoo changed the title [FIX] composer: make edition mode depend on cursor selection [FIX] composer: change mode to editing when composer cursor selection changes Nov 8, 2025
@VincentSchippefilt
Copy link
Collaborator

robodoo r+

robodoo pushed a commit that referenced this pull request Nov 18, 2025
… changes

Before this commit:
- When typing '=sum(' and pressing the Home key, selecting a range caused weird
  behavior in the composer.
- The same issue occurred when using Ctrl+A to select the entire text.

After this commit:
- Changing the cursor selection now correctly switches the mode to 'editing'.

closes #7400

Task: 5226615
Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
@robodoo robodoo closed this Nov 18, 2025
rrahir added a commit that referenced this pull request Nov 20, 2025
Currently, users can modify the input of a composer/selection input
while selecting a range in the grid. Those inputs can have side-effect
that are difficult to account for as the selection is managed in a hook
which is not aware of the related feature that it handles (selection,
cell reference, pivot reference, selection input). A recent work to fix
that: #7400

Overall, there is no added value to be able to mix writing text while
selecting ranges inside the grid so we simply disable that possibility
altogether.

Task: 5347297
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants